import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app';
  email = "test@email.com";
  post = {
    isFavorite: false
  }

  twitte = {
    body: 'you like me ',
    isLike: false,
    likesCount: 0
  }

  onSave($event) {
    console.log(this.email);
  }

  onKeyUp() {
    console.log(this.email);
  }

  onFavoriteChanged(args) {
    console.log('favorite changed: ', args);
  }
}
